package Song.Han.day02.demo03;

public class ArrayMax {
    public static void main(String[] args) {

        int[] array = {5,15,30,20,100};
        int max = array[0];

        for (int i = 1; i < array.length; i++) {
            if(array[i]>max)
                max = array[i];
        }

        System.out.println(max);
    }
}
